package com.wydpp.config;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "sip-server", ignoreInvalidFields = true)
public class SipServerConfig {

    private String ip;

    private String monitorIp = "0.0.0.0";

    private Integer port;

    private String domain;

    private String id;

    private String password;

    Integer ptzSpeed = 50;

    Integer keepaliveTimeOut = 255;

    Integer registerTimeInterval = 60;

    public void setIp(String ip) {
        this.ip = ip;
    }

    public void setMonitorIp(String monitorIp) {
        this.monitorIp = monitorIp;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setPtzSpeed(Integer ptzSpeed) {
        this.ptzSpeed = ptzSpeed;
    }

    public void setKeepaliveTimeOut(Integer keepaliveTimeOut) {
        this.keepaliveTimeOut = keepaliveTimeOut;
    }

    public void setRegisterTimeInterval(Integer registerTimeInterval) {
        this.registerTimeInterval = registerTimeInterval;
    }

    public String getMonitorIp() {
        return monitorIp;
    }

    public String getIp() {
        return ip;
    }


    public Integer getPort() {
        return port;
    }


    public String getDomain() {
        return domain;
    }


    public String getId() {
        return id;
    }

    public String getPassword() {
        return password;
    }


    public Integer getPtzSpeed() {
        return ptzSpeed;
    }

    public Integer getKeepaliveTimeOut() {
        return keepaliveTimeOut;
    }

    public Integer getRegisterTimeInterval() {
        return registerTimeInterval;
    }
}
